import React, { Component } from 'react'
import { HashRouter as Router, Route, Switch } from 'react-router-dom'
import App from './App';
import Order from './Order/'
import Detail from './Order/Detail/'
import SellTicket from './SellTicket'
import ReportForm from './ReportForm'
import BarREcharts from './ReportForm/barREcharts'

export default class router extends Component {
  constructor(props) {
    super(props)
  }

  render() {
    return (
      <Router>
        <Switch>
          <Route exact path="/" component={App} />
          <Route exact path="/SellTicket" component={SellTicket} />
          <Route exact path="/order" component={Order} />
          <Route exact path="/ReportForm" component={ReportForm} />
          <Route exact path="/BarREcharts/:type/:productType" component={BarREcharts} />
          <Route path="/order/:id" component={Detail} />
        </Switch>
      </Router>
    )
  }
}

